Message structure
The Embention/STANAG packet (ESPKT) is an AEP-84 Volume II packet with some additional header information added by Embention.
Packet structure
The full packet is comprised of a Header, Payload, Optional Checksum and CRC32:
| Header | Payload | Optional Checksum | CRC32 |
|---|---|---|---|
| 22 bytes | 1-528 bytes | 0-4 bytes | 4 bytes |
More in detail:
| Field name | Endian | Field bytes | |
|---|---|---|---|
| Header | Sync | - | 1 |
| Flags | - | 1 | |
| Ident | big | 2 | |
| Session | - | 1 | |
| CRC8 | - | 1 | |
| Reserved | big | 2 | |
| Len | big | 2 | |
| Src | big | 4 | |
| Dst | big | 4 | |
| Type | big | 2 | |
| Properties | big | 2 | |
| Payload | - | 1-528 | |
| Optional Checksum | big | 0-4 | |
| CRC32 | big | 4 | |
Packet header
The header fields are defined as follows:
Sync: header of the message, char0x45. Used to identify an incoming communication as an Embention/STANAG packet.Flags:
| Bits | Name | Notes |
|---|---|---|
| [0-3] | TTL | Range [0, 15] |
| [4-5] | Reserved | - |
| [6] | DRX_REC | 0 = primary, 1 = recovery |
| [7] | Crypted | If set to 1, the payload is encrypted. The VCP library does not decrypt payloads |
Ident: packet timestamp.Session: current session ID.CRC8: 8 bits checksum.- It uses the same algorithm as the CRC32 (see Packet CRC32) but takes only the LSB of the final CRC32.
- The CRC is taken across the entire packet header after serialization (and any reordering for endianness). The calculation excludes the CRC8 byte itself.
Reserved: not used.Len: number of payload bytes. It does not include the optional checksum, whose size is given bychk_t.Src: source ID/address (of sender).Dst: destination ID/address (of receiver).Type: message type (Msg ID). The messages used by the VCP library and its examples are:- 50001: Discovery.
- 50002: Event.
- 50005: File transfer (Filecom).
- 50020: Telemetry.
- 50041: Configuration (Cfgmgr).
Properties: bitmapped field with 4 subfields:reserved[0:5]: reserved (LSB).chk_t[6:7]: checksum type. See Packet optional checksum.ver[8:14]: IDD version number. Shall be 32.ack[15]: the most significant bit (MSB) indicates whether the message shall be acknowledged (ACK) or not (NACK). When the bit is "1", an acknowledgement shall be sent; if it is "0", no acknowledgement shall be sent.
Packet payload
The payload field contains the message-specific bytes. Its interpretation depends on the Type field of the header.
Packet optional checksum
The optional checksum may be employed to determine the presence of errors during transmission or handling of messages. Its use and length are specified by the chk_t subfield of the Properties field:
| Checksum | Checksum length | Method |
|---|---|---|
| 00 bin = "0" | 0 bytes | No checksum is used |
| 01 bin = "1" | 2 bytes | Addition |
| 10 bin = "2" | 4 bytes | Addition |
| 11 bin = "3" | 4 bytes | CRC-32 |
The optional checksum is calculated over the STANAG header (16 bytes) and the payload. The 6 bytes of the Embention extension of the header are not included.
Since a CRC32 is always added at the end of the packet, this optional checksum does not need to be sent. In that case, chk_t is set to 0 and the optional checksum is not sent.
Packet CRC32
The packet CRC is a CRC32 taken across the payload and the optional checksum (if present), with the following parameters:
- Polynomial:
0x4C11DB7(reciprocal:0xEDB88320) - Input reflected: true
- Output reflected: true
- Initial value:
0xFFFFFFFF - Final XOR value:
0xFFFFFFFF
The packet CRC is serialized in big endian format.
Packet decoding example
The following example shows a Stick message (Msg ID 50015) with 2 channels, both set to the neutral position (50%):
Raw message: 45 04 00 3D 00 3F 00 00 00 0A 00 00 00 02 00 00 17 78 C3 5F 20 C0
00 00 00 00 02 00 F0 7F F1 7F 94 AB F4 58 67 26 99 DD
Header: 45 04 00 3D 00 3F 00 00 00 0A 00 00 00 02 00 00 17 78 C3 5F 20 C0
Payload: 00 00 00 00 02 00 F0 7F F1 7F
Optional Checksum: 94 AB F4 58
CRC32: 67 26 99 DD
The header is decoded as follows:
| Field | Value (Hex) | Decoded value |
|---|---|---|
| Sync | 0x45 | Embention/STANAG packet |
| Flags | 0x04 | TTL = 4 |
| Ident | 0x003D | Packet timestamp |
| Session | 0x00 | Session 0 |
| CRC8 | 0x3F | Header checksum |
| Reserved | 0x0000 | - |
| Len | 0x000A | 10 payload bytes |
| Src | 0x00000002 | Source address 2 |
| Dst | 0x00001778 | Destination address 6008 |
| Type | 0xC35F | 50015 (Stick) |
| Properties | 0x20C0 | chk_t = 3 (CRC-32), ver = 32, no ACK |
And the payload:
| Field | Value (Hex) | Decoded value |
|---|---|---|
| Argument | 0x0000 | 0 (valid) |
| Port | 0x0000 | 0 |
| Channel count | 0x0200 | 2 channels |
| Channel[0] | 0xF07F | Channel = 0, Value = 0x7FF (neutral) |
| Channel[1] | 0xF17F | Channel = 1, Value = 0x7FF (neutral) |
© 2026 Embention. All rights reserved.